function getArticleList() {
    http.ajax({
        type: "get",
        url: '/admin/category/list',
        success: (res) => {
            const renderResult = template("categoryTemplate", res);
            $('#selCategory').html(renderResult);
        }
    });
}
// 2、筛选文章：
function search() {
    const cateId = $('#selCategory').val();
    const status = $('#selStatus').val();
    http.ajax({
        type: 'get',
        url: '/admin/article/query',
        data: { type: cateId, state: status },
        success: (res) => {
            console.log(res);
            const content = template("articleListTemplate", res);
            $('tbody').html(content);
        }
    });
}

getArticleList();